package com.demo.salary.transactionimplementation;


import com.demo.salary.abstracttransactions.AddEmployeeTransaction;
import com.demo.salary.payrolldomain.PaymentClassification;
import com.demo.salary.payrolldomain.PaymentSchedule;
import com.demo.salary.payrollimplementation.WeeklySchedule;
import com.demo.salary.payrollimplementation.HourlyClassification;

public class AddHourlyEmployee extends AddEmployeeTransaction {

    private double hourlySalary;
    public AddHourlyEmployee(int empId, String name, String address,double hourlySalary) {
        super(empId, name, address);
        this.hourlySalary = hourlySalary;
    }

    public double getHourlySalary() {
        return hourlySalary;
    }

    @Override
    public PaymentClassification getClassification() {
        return new HourlyClassification(hourlySalary);
    }

    @Override
    public PaymentSchedule getSchedule() {
        return new WeeklySchedule(5);
    }
}
